import robomaster
from robomaster import robot
import time
from robomaster import config
from robomaster import conn



ep1_robot=robot.Robot()
ep1_robot.initialize(conn_type='sta',sn='3JKDH6U001R8N3')
time.sleep(2)
print('ep1已连接,ip:{}'.format(ep1_robot.ip))

ep2_robot=robot.Robot()
ep2_robot.initialize(conn_type='sta',sn='3JKDH7G0010Y92')
time.sleep(2)
print('ep2已连接,ip:{}'.format(ep2_robot.ip))


tl_drone=robot.Drone()
tl_drone.initialize()
tl_drone.config_sta(ssid="robomaster",password="robo2021")
time.sleep(2)
print('TT已连接,ip:{}'.format(tl_drone.local_ip))


   